package com.beifu.manager.common;


import java.util.Set;

/**
 * 常量类
 */
public class Const {

    public interface User_Type{
        String SUPER_ADMIN = "1";
        String NORMAL = "0";
    }

    /**
     * 状态（1已完成，0未完成）
     */
    public interface Status {
        /**
         * 0未完成
         */
        int UNFIN = 0;
        /**
         * 1已完成
         */
        int FIN   = 1;
    }

    /**
     * 组织类型（0火车，1段，2洗涤厂）
     */

    public interface Organize_Type{

        int TRAIN  = 0;
        int DUAN   = 1;
        int WASHING_FACTORY = 2;
    }



    public enum OrganizeTypeEnum{

//        InCar("0","在车"),Duan("1","段"),InWash("2","洗涤"),Inlibrary("3","在库"),Scrap("9","报废");

        TRAIN(0,"车"),
        DUAN(1,"段"),
        WASHING_FACTORY(2,"洗涤厂"),
        STOREROOM(3,"库");

        OrganizeTypeEnum(int code,String value){
            this.code = code;
            this.value = value;
        }
        private String value;
        private int code;

        public String getValue() {
            return value;
        }

        public int getCode() {
            return code;
        }

        public static OrganizeTypeEnum codeOf(int code){
            for(OrganizeTypeEnum organizeTypeEnum : values()){
                if(organizeTypeEnum.getCode() == code){
                    return organizeTypeEnum;
                }
            }
            throw new RuntimeException("么有找到对应的枚举");
        }
    }
//
//    public enum AssetStatus{
////
////        '资产状态（1在库，2在车，3洗涤）',
//        TRAIN(0,"在车"),
//        WASHING_FACTORY(2,"洗涤厂"),
//        STOREROOM(3,"在库");
//
//        AssetStatus(int code , String value) {
//            this.value = value;
//            this.code = code;
//        }
//
//        private String value;
//        private int code;
//
//        public String getValue() {
//            return value;
//        }
//
//        public int getCode() {
//            return code;
//        }
//
//        public static AssetStatus codeOf(int code){
//            for(AssetStatus assetStatus : values()){
//                if(assetStatus.getCode() == code){
//                    return assetStatus;
//                }
//            }
//            throw new RuntimeException("么有找到对应的枚举");
//        }
//    }

    public interface Tran_Status {
        String YES = "1";
        String NO = "0";
    }
    public interface Wash_Status {
        String YES = "1";
        String NO = "0";

    }

    public interface First_Scan {
        String YES = "1";
    }
    public interface Second_Scan {
        String YES = "1";
        String NO = "0";

    }
}
